﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddTrustRegion.ascx.cs"
    Inherits="Team4Mock.UserControl.TrustRegion.AddTrustRegion" %>
<style type="text/css">
    .style1
    {
        width: 168px;
    }
    .style2
    {
        width: 168px;
        height: 35px;
    }
    .style3
    {
        height: 35px;
        width: 573px;
    }
    .style4
    {
        width: 168px;
        height: 30px;
    }
    .style5
    {
        height: 30px;
        width: 573px;
    }
    .style6
    {
        width: 573px;
    }
</style>
<script type="text/javascript">
    function Error() {
        alert("Error in processing !");
        window.location.href = "/FormView/Default.aspx";
    }
</script>
<script type="text/javascript">
    $(document).ready(function () {

        $(".tab_content").hide();
        $("ul.tabs li:first").addClass("active").show();
        $(".tab_content:first").show();

        $("ul.tabs li").click(function () {

            $("ul.tabs li").removeClass("active");
            $(this).addClass("active");
            $(".tab_content").hide();

            var activeTab = $(this).find("a").attr("href");
            $(activeTab).slideDown();
            return false;
        });
    });
</script>
<h3>
    TrustRegion Details</h3>
<div style="width: 754px;">
    <ul class="tabs" style="width: 760px; float: left;">
        <li><a href="#Details1" class="tab">Details</a></li>
    </ul>
    <br />
    <div class="tab_container">
        <div id="Details1" class="tab_content">
            <table width="700px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                    <tr>
                        <td class="style2">
                            Nation/Country <span style="color: Red;">(*)</span>
                        </td>
                        <td class="style3">
                            <asp:DropDownList ID="dlNation"  DataTextField="CountryName" DataValueField="CountryName" runat="server" Width="186px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Trust Region Name<span style="color: Red;">(*)</span>
                        </td>
                        <td class="style5">
                            <asp:TextBox ID="txtRegionName" runat="server" Width="186px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Description
                        </td>
                        <td class="style6">
                            <asp:TextBox ID="txtDes" runat="server" Height="63px" Style="margin-left: 0px" TextMode="MultiLine"
                                Width="186px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                    <td>
                    &nbsp;
                    </td>
                    <td>
                        <asp:CheckBox runat="server" ID="ckisactive" Text="Is Active"/>
                    </td>
                    </tr>
                </table>
            <br />
            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" 
                onclick="btnSave_Click" />
            <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="button" OnClick="btnBack_Click" />
            <asp:Label runat="server" ID="tb"></asp:Label>
        </div>
    </div>
</div>
